package com.dongdongshop.service;

import com.dk.util.PageResult;
import com.dongdongshop.pojo.TbGoods;
import com.dongdongshop.pojo.TbGoodsDesc;
import com.dongdongshop.pojo.TbItem;

import java.util.List;

public interface TbgoodService {

    //增加
    int insertgood(TbGoods tg, TbGoodsDesc tgd, List<TbItem> tbitem);


    PageResult getall(Integer pagenum, Integer pagesize);
    //商品表1
    TbGoods bygoods(Long id);

    //商品表2，
    TbGoodsDesc bygoodsdescid(Long id);

    //商品总表
    List<TbItem> byitemgoodid(Long id);

    //审核通过
    int tongguo(List<TbGoods> tg);

    //通过主键查询数据
    TbItem selectByid(Long skuId);
}
